<html>
<head>
<title>Automatic Data Binding Wizard</title>
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
<link href="../../../book.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF">
    <h1>Automatic Data Binding Wizard</h1>
	<h3>
	<img border="0" src="images/automatic_data_binding0.gif" align="left" hspace="10" vspace="10"></h3>
	<h3>Supported for JDK 1.5 
	and above only</h3>
	<p class="pnoall">The <b>Swing Automatic Data Binding</b> wizard can be used 
	to create new user interface classes (JPanels, JDialogs or JFrames) 
	complete with widgets, layouts and data bindings from arbitrary domain model 
	(bean) classes.</p>
              <p>To use the wizard, select the project source folder and package
              to contain the class. Then enter the class name and hit the <b>
				Next</b>
              button. If a domain class was selected when the wizard was opened, 
				a default name for the new UI class will be generated.<p>The <b>
	javax.swing.JPanel</b> class is the default
              superclass. You can select either <b>javax.swing.JDialog</b> or <b>
	javax.swing.JFrame</b> 
	as alternative superclasses. 
      <p class="pnoall">
	<img border="0" src="images/automatic_data_binding1.gif">&nbsp;
	<img border="0" src="images/automatic_data_binding2.gif"></p>
	<p class="pnoall">
	The second page of the wizard is used to specify the bean class, properties 
	and widgets used for the new user interface. Click the &quot;<b>...</b>&quot; button 
	to select a bean type, if it ha snot already been selected. The <b>Properties</b> list will show a list of bindable properties 
	discovered by inspecting the class (basically any properties with 
	getter/setter pairs with bindable data types). Next to &quot;...&quot; button is a 
	filter button that can be use to show other properties that can't be bound 
	(like <b>class</b>). </p>
	<p class="pnoall">
	<img border="0" src="images/automatic_data_binding3.gif">&nbsp;
	<img border="0" src="images/automatic_data_binding4.gif"></p>
	<p class="pnoall">
	Select or deselect all of the properties using the <b>Select All</b> or <b>
	Deselect All</b> buttons.
	The order of the properties may be changed using the <b>Up</b> and <b>Down</b> 
	buttons or via drag and drop. Check each property that should be bound to a 
	user interface widget. Only checked properties will appear in the user 
	interface. For each property, you can select a widget type and update 
	strategy. <b>String</b> properties will be defaulted to <b>JTextField</b> widgets 
	and <b>Boolean</b> properties will be defaulted to <b>JCheckBox</b> 
	widgets. The update strategy can be <b>READ_WRITE</b>, <b>READ</b> or <b>
	READ_ONCE</b>. When you are satisfied with your suggestions, 
	click <b>Finish</b> to generate the class.</p>
	<p class="pnoall">
	<img border="0" src="images/automatic_data_binding5.gif">&nbsp;
	<img border="0" src="images/automatic_data_binding6.gif"></p>
	<p class="pnoall">
	The generated user interface will consist of a two-column <b>
	<a href="../../layoutmanagers/swing/gridbaglayout.html">GridBagLayout</a></b> with 
	labels in the first column and editable widgets (text fields, checkboxes, 
	spinners, etc.) in the second column. The generated layout is fully editable 
	in the editor.</p>
	<p class="pnoall">
	<img border="0" src="images/automatic_data_binding7.gif"></p>
	<p class="pnoall">
	Click the
	<b>Bindings</b> tab in the editor to review the generated bindings. All of the bindings may be edited 
	and new ones added.</p>
	<p class="pnoall">
	<img border="0" src="images/data_binding_tab.gif" align="absbottom"></p>
	<p class="pnoall">
	<img border="0" src="images/automatic_data_binding8.gif"></p>
	<p class="pnoall">
	Given a data model (bean) class like this:</p>
	<blockquote>
		<b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">
		public</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">
		class</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		Person </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">
		extends</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		AbstractModelObject {</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">private</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		String </span>
		<span style="font-family:&quot;Courier&quot;;color:#0000C0">
		m_name</span><span style="font-family:&quot;Courier&quot;;color:black">;</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">private</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		String </span>
		<span style="font-family:&quot;Courier&quot;;color:#0000C0">
		m_phone</span><span style="font-family:&quot;Courier&quot;;color:black">;</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">private</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		String </span>
		<span style="font-family:&quot;Courier&quot;;color:#0000C0">
		m_email</span><span style="font-family:&quot;Courier&quot;;color:black">;</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">private</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">
		int</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span>
		<span style="font-family:&quot;Courier&quot;;color:#0000C0">
		m_age</span><span style="font-family:&quot;Courier&quot;;color:black">;</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">private</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">
		boolean</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span>
		<span style="font-family:&quot;Courier&quot;;color:#0000C0">
		m_male</span><span style="font-family:&quot;Courier&quot;;color:black">;</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; </span>
		<span style="font-family:&quot;Courier&quot;;color:#3F7F5F">//</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">public</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		String getName() {</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">return</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span>
		<span style="font-family:&quot;Courier&quot;;color:#0000C0">
		m_name</span><span style="font-family:&quot;Courier&quot;;color:black">;</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; }</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">public</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">
		void</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		setName(String name) {</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
		<span style="font-family:&quot;Courier&quot;;color:#0000C0">m_name</span><span style="font-family:&quot;Courier&quot;;color:black"> = name;</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; }</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">public</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		String getPhone() {</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">return</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span>
		<span style="font-family:&quot;Courier&quot;;color:#0000C0">
		m_phone</span><span style="font-family:&quot;Courier&quot;;color:black">;</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; }</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">public</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">
		void</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		setPhone(String phone) {</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
		<span style="font-family:&quot;Courier&quot;;color:#0000C0">m_phone</span><span style="font-family:&quot;Courier&quot;;color:black"> = phone;</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; }</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">public</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		String getEmail() {</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">return</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span>
		<span style="font-family:&quot;Courier&quot;;color:#0000C0">
		m_email</span><span style="font-family:&quot;Courier&quot;;color:black">;</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; }</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">public</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">
		void</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		setEmail(String email) {</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
		<span style="font-family:&quot;Courier&quot;;color:#0000C0">m_email</span><span style="font-family:&quot;Courier&quot;;color:black"> = email;</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; }</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">public</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">
		int</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		getAge() {</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">return</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span>
		<span style="font-family:&quot;Courier&quot;;color:#0000C0">
		m_age</span><span style="font-family:&quot;Courier&quot;;color:black">;</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; }</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">public</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">
		void</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		setAge(</span><b><span style="font-family:&quot;Courier&quot;;color:#7F0055">int</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		age) {</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
		<span style="font-family:&quot;Courier&quot;;color:#0000C0">m_age</span><span style="font-family:&quot;Courier&quot;;color:black"> = age;</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; }</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">public</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">
		boolean</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		isMale() {</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">return</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span>
		<span style="font-family:&quot;Courier&quot;;color:#0000C0">
		m_male</span><span style="font-family:&quot;Courier&quot;;color:black">;</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; }</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; </span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">public</span></b><span style="font-family:&quot;Courier&quot;;color:black">
		</span><b>
		<span style="font-family:&quot;Courier&quot;;color:#7F0055">
		void</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		setMale(</span><b><span style="font-family:&quot;Courier&quot;;color:#7F0055">boolean</span></b><span style="font-family:&quot;Courier&quot;;color:black"> 
		male) {</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
		<span style="font-family:&quot;Courier&quot;;color:#0000C0">m_male</span><span style="font-family:&quot;Courier&quot;;color:black"> = male;</span></p>
		<span style="font-family:&quot;Courier&quot;;color:black">&nbsp;&nbsp;&nbsp; }</span></p>
		<span style="font-family: Courier; color: black">
		}</span></blockquote>
	<p class="pnoall">
	The generated source looks like this:</p>
<blockquote>
	<b><span style="font-family: Courier; color: #7F0055">import</span></b><span style="font-family: Courier; color: black"> 
	java.awt.GridBagConstraints;<br>
	</span><b><span style="font-family: Courier; color: #7F0055">import</span></b><span style="font-family: Courier; color: black"> 
	java.awt.GridBagLayout;<br>
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>import</b></span><span style="font-family: Courier; color: black"> 
	java.awt.Insets;<br>
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>import</b></span><span style="font-family: Courier; color: black"> 
	java.beans.Beans;<br>
	<br>
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>import</b></span><span style="font-family: Courier; color: black"> 
	javax.swing.JCheckBox;<br>
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>import</b></span><span style="font-family: Courier; color: black"> 
	javax.swing.JLabel;<br>
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>import</b></span><span style="font-family: Courier; color: black"> 
	javax.swing.JPanel;<br>
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>import</b></span><span style="font-family: Courier; color: black"> 
	javax.swing.JSpinner;<br>
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>import</b></span><span style="font-family: Courier; color: black"> 
	javax.swing.JTextField;<br>
	<br>
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>import</b></span><span style="font-family: Courier; color: black"> 
	org.jdesktop.beansbinding.AutoBinding;<br>
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>import</b></span><span style="font-family: Courier; color: black"> 
	org.jdesktop.beansbinding.BeanProperty;<br>
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>import</b></span><span style="font-family: Courier; color: black"> 
	org.jdesktop.beansbinding.Bindings;<br>
	<br>
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>public</b></span><span style="font-family: Courier; color: black"> 
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>class</b></span><span style="font-family: Courier; color: black"> 
	PersonJPanel </span><span style="font-family: Courier; color: #7F0055"> 
	<b>extends</b></span><span style="font-family: Courier; color: black"> 
	JPanel {<br>
	<br>
&nbsp;&nbsp;&nbsp; </span><span style="font-family: Courier; color: #7F0055"> 
	<b>private</b></span><span style="font-family: Courier; color: black"> 
	auto.Person person = </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	auto.Person();<br>
&nbsp;&nbsp;&nbsp; </span><span style="font-family: Courier; color: #7F0055"> 
	<b>private</b></span><span style="font-family: Courier; color: black"> 
	JTextField </span><span style="font-family: Courier; color: #0000C0"> 
	nameJTextField</span><span style="font-family: Courier; color: black">;<br>
&nbsp;&nbsp;&nbsp; </span><span style="font-family: Courier; color: #7F0055"> 
	<b>private</b></span><span style="font-family: Courier; color: black"> 
	JTextField </span><span style="font-family: Courier; color: #0000C0"> 
	phoneJTextField</span><span style="font-family: Courier; color: black">;<br>
&nbsp;&nbsp;&nbsp; </span><span style="font-family: Courier; color: #7F0055"> 
	<b>private</b></span><span style="font-family: Courier; color: black"> 
	JTextField </span><span style="font-family: Courier; color: #0000C0"> 
	emailJTextField</span><span style="font-family: Courier; color: black">;<br>
&nbsp;&nbsp;&nbsp; </span><span style="font-family: Courier; color: #7F0055"> 
	<b>private</b></span><span style="font-family: Courier; color: black"> 
	JSpinner </span><span style="font-family: Courier; color: #0000C0"> 
	ageJSpinner</span><span style="font-family: Courier; color: black">;<br>
&nbsp;&nbsp;&nbsp; </span><span style="font-family: Courier; color: #7F0055"> 
	<b>private</b></span><span style="font-family: Courier; color: black"> 
	JCheckBox </span><span style="font-family: Courier; color: #0000C0"> 
	maleJCheckBox</span><span style="font-family: Courier; color: black">;<br>
	<br>
&nbsp;&nbsp;&nbsp; /**<br>
&nbsp;&nbsp;&nbsp; * Create the panel.<br>
&nbsp;&nbsp;&nbsp; */<br>
&nbsp;&nbsp;&nbsp; </span><span style="font-family: Courier; color: #7F0055"> 
	<b>public</b></span><span style="font-family: Courier; color: black"> 
	PersonJPanel() {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GridBagLayout gridBagLayout = </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	GridBagLayout();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gridBagLayout.columnWidths = </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>int[]</b></span><span style="font-family: Courier; color: black"> 
	{ 0, 0, 0 };<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gridBagLayout.rowHeights = </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>int[]</b></span><span style="font-family: Courier; color: black"> 
	{ 0, 0, 0, 0, 0, 0 };<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gridBagLayout.columnWeights = </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>double[]</b></span><span style="font-family: Courier; color: black"> 
	{ 0.0, 1.0, 1.0E-4 };<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gridBagLayout.rowWeights = </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>double[]</b></span><span style="font-family: Courier; color: black"> 
	{ 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4 };<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setLayout(gridBagLayout);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //</span><b><font face="Courier" color="#7F0055"><br>
	</font></b><span style="font-family: Courier; color: black"> 
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JLabel label 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	JLabel(</span><span style="font-family: Courier; color: #2A00FF">&quot;Name:&quot;</span><span style="font-family: Courier; color: black">);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	GridBagConstraints gbc = </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	GridBagConstraints();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">insets</span><span style="font-family: Courier; color: black"> 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	Insets(5, 5, 5, 5);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridx</span><span style="font-family: Courier; color: black"> 
	= 0;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridy</span><span style="font-family: Courier; color: black"> 
	= 0;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add(label, 
	gbc);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
	<span style="font-family: Courier; color: #0000C0"> 
	nameJTextField</span><span style="font-family: Courier; color: black"> 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	JTextField();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	GridBagConstraints gbc = </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	GridBagConstraints();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">insets</span><span style="font-family: Courier; color: black"> 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	Insets(5, 0, 5, 5);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">fill</span><span style="font-family: Courier; color: black"> 
	= GridBagConstraints.</span><span style="font-family: Courier; color: #0000C0"><i>HORIZONTAL</i></span><span style="font-family: Courier; color: black">;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridx</span><span style="font-family: Courier; color: black"> 
	= 1;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridy</span><span style="font-family: Courier; color: black"> 
	= 0;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add(</span><span style="font-family: Courier; color: #0000C0">nameJTextField</span><span style="font-family: Courier; color: black">, 
	gbc);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JLabel label 
	= new</span><span style="font-family: Courier; color: #7F0055"><b> </b></span><span style="font-family: Courier; color: black"> 
	JLabel(</span><span style="font-family: Courier; color: #2A00FF">&quot;Phone:&quot;</span><span style="font-family: Courier; color: black">);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	GridBagConstraints gbc = </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	GridBagConstraints();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">insets</span><span style="font-family: Courier; color: black"> 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	Insets(5, 5, 5, 5);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridx</span><span style="font-family: Courier; color: black"> 
	= 0;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridy</span><span style="font-family: Courier; color: black"> 
	= 1;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add(label, 
	gbc);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
	<span style="font-family: Courier; color: #0000C0"> 
	phoneJTextField</span><span style="font-family: Courier; color: black"> 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	JTextField();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	GridBagConstraints gbc = </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	GridBagConstraints();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">insets</span><span style="font-family: Courier; color: black"> 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	Insets(5, 0, 5, 5);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">fill</span><span style="font-family: Courier; color: black"> 
	= GridBagConstraints.</span><span style="font-family: Courier; color: #0000C0"><i>HORIZONTAL</i></span><span style="font-family: Courier; color: black">;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridx</span><span style="font-family: Courier; color: black"> 
	= 1;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridy</span><span style="font-family: Courier; color: black"> 
	= 1;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add(</span><span style="font-family: Courier; color: #0000C0">phoneJTextField</span><span style="font-family: Courier; color: black">, 
	gbc);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JLabel label 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	JLabel(</span><span style="font-family: Courier; color: #2A00FF">&quot;Email:&quot;</span><span style="font-family: Courier; color: black">);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	GridBagConstraints gbc = </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	GridBagConstraints();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">insets</span><span style="font-family: Courier; color: black"> 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	Insets(5, 5, 5, 5);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridx</span><span style="font-family: Courier; color: black"> 
	= 0;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridy</span><span style="font-family: Courier; color: black"> 
	= 2;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add(label, 
	gbc);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
	<span style="font-family: Courier; color: #0000C0"> 
	emailJTextField</span><span style="font-family: Courier; color: black"> 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	JTextField();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	GridBagConstraints gbc = </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	GridBagConstraints();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">insets</span><span style="font-family: Courier; color: black"> 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	Insets(5, 0, 5, 5);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">fill</span><span style="font-family: Courier; color: black"> 
	= GridBagConstraints.</span><span style="font-family: Courier; color: #0000C0"><i>HORIZONTAL</i></span><span style="font-family: Courier; color: black">;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridx</span><span style="font-family: Courier; color: black"> 
	= 1;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridy</span><span style="font-family: Courier; color: black"> 
	= 2;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add(</span><span style="font-family: Courier; color: #0000C0">emailJTextField</span><span style="font-family: Courier; color: black">, 
	gbc);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><font face="Courier" color="#7F0055"><b><br>
	</b></font><span style="font-family: Courier; color: black"> 
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JLabel label 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	JLabel(</span><span style="font-family: Courier; color: #2A00FF">&quot;Age:&quot;</span><span style="font-family: Courier; color: black">);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	GridBagConstraints gbc = </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	GridBagConstraints();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">insets</span><span style="font-family: Courier; color: black"> 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	Insets(5, 5, 5, 5);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridx</span><span style="font-family: Courier; color: black"> 
	= 0;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridy</span><span style="font-family: Courier; color: black"> 
	= 3;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add(label, 
	gbc);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
	<span style="font-family: Courier; color: #0000C0"> 
	ageJSpinner</span><span style="font-family: Courier; color: black"> 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	JSpinner();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	GridBagConstraints gbc = </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	GridBagConstraints();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">insets</span><span style="font-family: Courier; color: black"> 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	Insets(5, 0, 5, 5);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">fill</span><span style="font-family: Courier; color: black"> 
	= GridBagConstraints.</span><span style="font-family: Courier; color: #0000C0"><i>HORIZONTAL</i></span><span style="font-family: Courier; color: black">;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridx</span><span style="font-family: Courier; color: black"> 
	= 1;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridy</span><span style="font-family: Courier; color: black"> 
	= 3;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add(</span><span style="font-family: Courier; color: #0000C0">ageJSpinner</span><span style="font-family: Courier; color: black">, 
	gbc);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JLabel label 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	JLabel(</span><span style="font-family: Courier; color: #2A00FF">&quot;Male:&quot;</span><span style="font-family: Courier; color: black">);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	GridBagConstraints gbc = </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	GridBagConstraints();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">insets</span><span style="font-family: Courier; color: black"> 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	Insets(5, 5, 5, 5);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridx</span><span style="font-family: Courier; color: black"> 
	= 0;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridy</span><span style="font-family: Courier; color: black"> 
	= 4;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add(label, 
	gbc);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
	<span style="font-family: Courier; color: #0000C0"> 
	maleJCheckBox</span><span style="font-family: Courier; color: black"> 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	JCheckBox();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	GridBagConstraints gbc = </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	GridBagConstraints();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">insets</span><span style="font-family: Courier; color: black"> 
	= </span><span style="font-family: Courier; color: #7F0055"> 
	<b>new</b></span><span style="font-family: Courier; color: black"> 
	Insets(5, 0, 5, 5);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">fill</span><span style="font-family: Courier; color: black"> 
	= GridBagConstraints.</span><span style="font-family: Courier; color: #0000C0"><i>HORIZONTAL</i></span><span style="font-family: Courier; color: black">;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridx</span><span style="font-family: Courier; color: black"> 
	= 1;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gbc.</span><span style="font-family: Courier; color: #0000C0">gridy</span><span style="font-family: Courier; color: black"> 
	= 4;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add(</span><span style="font-family: Courier; color: #0000C0">maleJCheckBox</span><span style="font-family: Courier; color: black">, 
	gbc);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; initDataBindings();<br>
&nbsp;&nbsp;&nbsp; }</span><b><font face="Courier" color="#7F0055"><br>
	<br>
	</font></b><span style="font-family: Courier; color: black"> 
	&nbsp;&nbsp;&nbsp; </span><b>
	<span style="font-family: Courier; color: #7F0055">protected</span></b><span style="font-family: Courier; color: black"> 
	</span><span style="font-family: Courier; color: #7F0055"> 
	<b>void</b></span><span style="font-family: Courier; color: black"> 
	initDataBindings() {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>if</b></span><span style="font-family: Courier; color: black"> 
	(Beans.isDesignTime()) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>return</b></span><span style="font-family: Courier; color: black">;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BeanProperty&lt;auto.Person, 
	java.lang.String&gt; nameProperty = BeanProperty.create(</span><span style="font-family: Courier; color: #2A00FF">&quot;name&quot;</span><span style="font-family: Courier; color: black">);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BeanProperty&lt;javax.swing.JTextField, 
	java.lang.String&gt; textProperty = BeanProperty.create(</span><span style="font-family: Courier; color: #2A00FF">&quot;text&quot;</span><span style="font-family: Courier; color: black">);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AutoBinding&lt;auto.Person, 
	java.lang.String, javax.swing.JTextField, java.lang.String&gt; autoBinding =
	<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	Bindings.createAutoBinding(AutoBinding.UpdateStrategy.READ, </span>
	<span style="font-family: Courier; color: #0000C0"> 
	person</span><span style="font-family: Courier; color: black">, nameProperty, </span>
	<span style="font-family: Courier; color: #0000C0"> 
	nameJTextField</span><span style="font-family: Courier; color: black">, 
	textProperty);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; autoBinding.bind();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BeanProperty&lt;auto.Person, 
	java.lang.String&gt; phoneProperty = BeanProperty.create(</span><span style="font-family: Courier; color: #2A00FF">&quot;phone&quot;</span><span style="font-family: Courier; color: black">);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BeanProperty&lt;javax.swing.JTextField, 
	java.lang.String&gt; textProperty_1 = BeanProperty.create(</span><span style="font-family: Courier; color: #2A00FF">&quot;text&quot;</span><span style="font-family: Courier; color: black">);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AutoBinding&lt;auto.Person, 
	java.lang.String, javax.swing.JTextField, java.lang.String&gt; autoBinding_1 =
	<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	Bindings.createAutoBinding(AutoBinding.UpdateStrategy.READ, </span>
	<span style="font-family: Courier; color: #0000C0"> 
	person</span><span style="font-family: Courier; color: black">, 
	phoneProperty, </span><span style="font-family: Courier; color: #0000C0"> 
	phoneJTextField</span><span style="font-family: Courier; color: black">, 
	textProperty_1);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; autoBinding_1.bind();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BeanProperty&lt;auto.Person, 
	java.lang.String&gt; emailProperty = BeanProperty.create(</span><span style="font-family: Courier; color: #2A00FF">&quot;email&quot;</span><span style="font-family: Courier; color: black">);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BeanProperty&lt;javax.swing.JTextField, 
	java.lang.String&gt; textProperty_2 = BeanProperty.create(</span><span style="font-family: Courier; color: #2A00FF">&quot;text&quot;</span><span style="font-family: Courier; color: black">);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AutoBinding&lt;auto.Person, 
	java.lang.String, javax.swing.JTextField, java.lang.String&gt; autoBinding_2 =
	<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	Bindings.createAutoBinding(AutoBinding.UpdateStrategy.READ, </span>
	<span style="font-family: Courier; color: #0000C0"> 
	person</span><span style="font-family: Courier; color: black">, 
	emailProperty, </span><span style="font-family: Courier; color: #0000C0"> 
	emailJTextField</span><span style="font-family: Courier; color: black">, 
	textProperty_2);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; autoBinding_2.bind();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BeanProperty&lt;auto.Person, 
	java.lang.Integer&gt; ageProperty = BeanProperty.create(</span><span style="font-family: Courier; color: #2A00FF">&quot;age&quot;</span><span style="font-family: Courier; color: black">);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BeanProperty&lt;javax.swing.JSpinner, 
	java.lang.Object&gt; valueProperty = BeanProperty.create(</span><span style="font-family: Courier; color: #2A00FF">&quot;value&quot;</span><span style="font-family: Courier; color: #0000C0">)</span><span style="font-family: Courier; color: black">;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AutoBinding&lt;auto.Person, 
	java.lang.Integer, javax.swing.JSpinner, java.lang.Object&gt; autoBinding_3 =
	<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	Bindings.createAutoBinding(AutoBinding.UpdateStrategy.READ, </span>
	<span style="font-family: Courier; color: #0000C0"> 
	person</span><span style="font-family: Courier; color: black">, ageProperty, </span>
	<span style="font-family: Courier; color: #0000C0"> 
	ageJSpinner</span><span style="font-family: Courier; color: black">, 
	valueProperty);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; autoBinding_3.bind();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BeanProperty&lt;auto.Person, 
	java.lang.Boolean&gt; maleProperty = BeanProperty.create(</span><span style="font-family: Courier; color: #2A00FF">&quot;male&quot;</span><span style="font-family: Courier; color: black">);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BeanProperty&lt;javax.swing.JCheckBox, 
	java.lang.Boolean&gt; selectedProperty = BeanProperty.create(</span><span style="font-family: Courier; color: #2A00FF">&quot;selected&quot;</span><span style="font-family: Courier; color: black">);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AutoBinding&lt;auto.Person, 
	java.lang.Boolean, javax.swing.JCheckBox, java.lang.Boolean&gt; autoBinding_4 =
	<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	Bindings.createAutoBinding(AutoBinding.UpdateStrategy.READ, </span>
	<span style="font-family: Courier; color: #0000C0"> 
	person</span><span style="font-family: Courier; color: black">, maleProperty, </span>
	<span style="font-family: Courier; color: #0000C0"> 
	maleJCheckBox</span><span style="font-family: Courier; color: black">, 
	selectedProperty);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; autoBinding_4.bind();<br>
&nbsp;&nbsp;&nbsp; }<br>
	<br>
&nbsp;&nbsp;&nbsp; </span><span style="font-family: Courier; color: #7F0055"> 
	<b>public</b></span><span style="font-family: Courier; color: black"> 
	auto.Person getPerson() {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
	<span style="font-family: Courier; color: #7F0055"> 
	<b>return</b></span><span style="font-family: Courier; color: black"> 
	person;<br>
&nbsp;&nbsp;&nbsp; }<br>
	}</span></blockquote>
          </body>
</html>